package com.ruoyi.awards.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 赛事奖项对象 awards
 * 
 * @author yjh
 * @date 2024-08-14
 */
public class Awards extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一ID */
    private Long id;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 比赛名称 */
    @Excel(name = "比赛名称")
    private String matchName;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 获奖图片 */
    @Excel(name = "获奖图片")
    private String picture;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setMatchName(String matchName) 
    {
        this.matchName = matchName;
    }

    public String getMatchName() 
    {
        return matchName;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("grade", getGrade())
            .append("userName", getUserName())
            .append("matchName", getMatchName())
            .append("time", getTime())
            .append("picture", getPicture())
            .toString();
    }
}
